package com.internship.model;

import com.internship.service.Const;
public class PracticeChange {
	private int Id;
	private String studentId;
	private String studentName;
	private String teacherId;
	private String teacherName;	
	private String enterTeacherId;
	private String enterTeacherName;	
	private String enterTeacherPhone;
	private String deptCode;
	private String deptName;
	private int JobId;
	private String JobName;
	private int enterpriseId;
	private String enterpriseName;
	private String theContact;
	private String theAddress;
	private String thePhone;
	private String startTime;
	private String endTime;
	private String applyTime;
	private int toStatus;
	private int checkApprove;
	private String applyCause;
	private String declineReason;
	private int currentStatus;
	private String currentEnterpriseName;
	public String getStudentId() {
		return studentId;
	}
	public void setStudentId(String studentId) {
		this.studentId = studentId;
	}
	public String getTeacherId() {
		return teacherId;
	}
	public void setTeacherId(String teacherId) {
		this.teacherId = teacherId;
	}
	public String getDeptCode() {
		return deptCode;
	}
	public void setDeptCode(String deptCode) {
		this.deptCode = deptCode;
	}
	public String getDeptName() {
		return deptName;
	}
	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}
	public String getEnterpriseName() {
		return enterpriseName;
	}
	public void setEnterpriseName(String enterpriseName) {
		this.enterpriseName = enterpriseName;
	}
	public String getTheAddress() {
		return theAddress;
	}
	public void setTheAddress(String theAddress) {
		this.theAddress = theAddress;
	}
	public String getThePhone() {
		return thePhone;
	}
	public void setThePhone(String thePhone) {
		this.thePhone = thePhone;
	}
	
	public String getPracticeTime() {
		return startTime == null ? "" : (startTime + " 至 " + endTime);
	}
	public String getApplyCause() {
		return applyCause;
	}
	public void setApplyCause(String applyCause) {
		this.applyCause = applyCause;
	}
	public String getDeclineReason() {
		return declineReason;
	}
	public void setDeclineReason(String declineReason) {
		this.declineReason = declineReason;
	}
	public int getId() {
		return Id;
	}
	public void setId(int id) {
		Id = id;
	}
	
	public int getToStatus() {
		return toStatus;
	}
	public void setToStatus(int status) {
		this.toStatus = status;
	}
	
	public String getTheContact() {
		return theContact == null ? "" : theContact;
	}
	public void setTheContact(String theTutor) {
		this.theContact = theTutor;
	}
	public String getStudentName() {
		return studentName==null?"":studentName;
	}
	public void setStudentName(String studentName) {
		this.studentName = studentName;
	}
	public String getTeacherName() {
		return teacherName==null?"":teacherName;
	}
	public void setTeacherName(String teacherName) {
		this.teacherName = teacherName;
	}
	public String getCurrentEnterpriseName() {
		return currentEnterpriseName == null?"":currentEnterpriseName;
	}
	public void setCurrentEnterpriseName(String currentEnterpriseName) {
		this.currentEnterpriseName = currentEnterpriseName;
	}
	public int getCurrentStatus() {
		return currentStatus;
	}
	public void setCurrentStatus(int currentStatus) {
		this.currentStatus = currentStatus;
	}
	
	public String getPracticeStatus() {
		return intToString(toStatus);
	}
	
	public String getCurrentPracticeStatus() {
		return intToString(currentStatus);
	}
	
	private String intToString(int status) {
		switch(status) {
		case 1:
			return "自主创业";
		case 2:
			return "专升本";
		case 3:
			return "自寻企业实习";
		case 4:
			return "学校分配实习";
		}
		return "在校";
	}
	public int getCheckApprove() {
		return checkApprove;
	}
	public void setCheckApprove(int checkApprove) {
		this.checkApprove = checkApprove;
	}
	
	public String getCheckApproveStatus() {
		switch(checkApprove) {
		case Const.APPROVE_0:
			return "未批准";
		case Const.APPROVE_1:
			return "指导教师未批准";
		case Const.APPROVE_2:
			return "指导教师已批准";
		case Const.APPROVE_3:
			return "部门未批准";
		case Const.APPROVE_4:
			return "部门已批准";
		}
		return "未批准";
	}
	public int getEnterpriseId() {
		return enterpriseId;
	}
	public void setEnterpriseId(int enterpriseId) {
		this.enterpriseId = enterpriseId;
	}
	public String getStartTime() {
		return startTime;
	}
	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}
	public String getEndTime() {
		return endTime;
	}
	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	public String getApplyTime() {
		return applyTime;
	}
	public void setApplyTime(String applyTime) {
		this.applyTime = applyTime;
	}
	public int getJobId() {
		return JobId;
	}
	public void setJobId(int jobId) {
		JobId = jobId;
	}
	public String getJobName() {
		return JobName;
	}
	public void setJobName(String jobName) {
		JobName = jobName;
	}
	public String getEnterTeacherId() {
		return enterTeacherId;
	}
	public void setEnterTeacherId(String enterTeacherId) {
		this.enterTeacherId = enterTeacherId;
	}
	public String getEnterTeacherName() {
		return enterTeacherName;
	}
	public void setEnterTeacherName(String enterTeacherName) {
		this.enterTeacherName = enterTeacherName;
	}
	public String getEnterTeacherPhone() {
		return enterTeacherPhone;
	}
	public void setEnterTeacherPhone(String enterTeacherPhone) {
		this.enterTeacherPhone = enterTeacherPhone;
	}
	
}